import { createStore, combineReducers, applyMiddleware } from 'redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import userReducer from './user'
import attentReducer from './attention'
const reducer = combineReducers({
	user: userReducer,
	attent: attentReducer
})

const store = createStore(reducer, applyMiddleware(logger, thunk))

export type RootState = ReturnType<typeof reducer>

export default store